package com.supor.aiot.mine.api;


import com.android.baseconfig.base.BaseApiResult;
import com.supor.aiot.common.app.Constants;


import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author Xiaozhuang
 * @date 2021/10/21
 *
 * @description 微信服务授权接口
 */
public interface WechatService {

    /**
     *
     * 查询用户微信开关状态接口
     *
     * @return Observable<BaseApiResult<Sting>>
     */
    @GET(Constants.OSS_API + "bossTUser/getUserPermissions")
    Observable<BaseApiResult<String>> getWechatOauthStatus(@Query("authorizationType") String authorizationType);

    /**
     *
     * 用户开启/关闭微信推送接口
     *
     * @return Observable<BaseApiResult<Sting>>
     */
    @GET(Constants.OSS_API + "bossTUser/userWechatOauth")
    Observable<BaseApiResult<String>> setWechatOauth(@Query("isOauth") String isOauth);
}
